package com.myHospital.dao;

import com.myHospital.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User login(@Param("name") String name,@Param("password") String password);

    List<User> SearchUser(@Param("name") String name, @Param("phone") String phone, @Param("site") String site,
                          @Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
    int register(User user);

    User getById(int id);
}